package jonggyuni.basic;

import java.util.Scanner;

public class J04_CardCheck {

	public static void main(String[] args) {

		int cardNum, num;
		
		Scanner sc = new Scanner(System.in);
					
		System.out.print("카드 번호를 입력하세요 : ");
		cardNum = sc.nextInt();
		
		num=cardNum/10000;
		
		if(num>=35 && num<40){
			if(cardNum==356317){System.out.println("JCB카드/NH농협카드");}
			else if(cardNum==356901){System.out.println("JCB카드/신한카드");}
			else if(cardNum==356912){System.out.println("JCB카드/KB국민카드");}
			else {System.out.println("잘못된 카드번호입니다");}			
		}
		else if(num>=40 && num<50){
			if(cardNum==404825){System.out.println("비자카드/비씨카드");}
			else if(cardNum==438676){System.out.println("비자카드/신한카드");}
			else if(cardNum==457973){System.out.println("비자카드/국민은행");}
			else{System.out.println("잘못된 카드번호입니다");}
		}
		else if(num>=50){
			if(cardNum==515594){System.out.println("마스타카드/신한카드");}
			else if(cardNum==524353){System.out.println("마스타카드/외환카드");}
			else if(cardNum==540926){System.out.println("마스타카드/국민은행");}			
		}
		else{
			System.out.println("잘못된 카드번호입니다.");
		}
		
		sc.close();
	}

}
